// store/index 统一管理 pinia 和 pinia各个模块的文件
import { createPinia } from 'pinia'
import { useUserStore } from './modules/user'
import { useConsultStore } from './modules/consult'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
export { useUserStore, useConsultStore }
export default pinia // 挂载到mian.ts中
